#pragma once

#include <vector>

#include "Point2D.h"

class Shape2D
{
public:
	Shape2D();
	Shape2D(std::vector<Point2D>& points);
	virtual ~Shape2D(void);

	std::vector<Point2D>& GetVertexes();
	Point2D* GetCenter();
	int Area() const;
	

protected:
	void ComputeAABB();

	std::vector<Point2D> vertexes;
	
	Point2D minAABB, maxAABB;
};

